package com.enjoylearning.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.enjoylearning.content.model.dto.TeachplanDto;
import com.enjoylearning.content.model.po.Teachplan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程计划 Mapper 接口
 * </p>
 *
 * @author itcast
 */
public interface TeachplanMapper extends BaseMapper<Teachplan> {

    //课程计划查询
    List<TeachplanDto> selectTeachPlanById(Long id);

    //排序字段重置
    void redoOrderBy(@Param("course_id") Long courseId,@Param("parent_id") Long parentId,@Param("order_by") Integer orderBy);

    void moveDown(@Param("id") Long id,@Param("orderby") Integer orderBy);

    void moveUP(@Param("id") Long id,@Param("orderby") Integer orderBy);
}
